import RouterView from "~/components/RouterView";

const Teacher_Home = () => import("~/view/Teacher/Home").then(m => m.default || m);
const Teacher_Information = () => import("~/view/Teacher/TeacherInformation/Information").then(m => m.default || m);
const Teacher_InServiceInformation = () => import("~/view/Teacher/InServiceInformation/InServiceInformation").then(m => m.default || m);
const Teacher_RetirementInformation = () => import("~/view/Teacher/TeacherInformation/RetirementInformation").then(m => m.default || m);
const Teacher_ComprehensiveEvaluation = () => import("~/view/Teacher/TeacherComprehensiveAssessment/TeacherComprehensiveAssessment").then(m => m.default || m);

const Teacher_OfficeRoom = () => import("~/view/Teacher/OfficeRoom/index").then(m => m.default || m);
const Teacher_DistributionOffice = () => import("~/view/Teacher/DistributionOffice/index").then(m => m.default || m);
/**
 * 教师管理 前缀Teacher
 */
export default [
    //首页
    {
        path: "/TeacherHome",
        name: "TeacherHome",
        component: Teacher_Home,
        authentication: "TeacherHome"
    },
    //教职工信息
    {
        path: "/TeacherInformation",
        name: "TeacherInformation",
        authentication: "TeacherInformation",
        component: RouterView,
        children: [
            //所有教职工信息
            {
                path: "/All",
                name: "TeacherInformationAll",
                authentication: "TeacherInformationAll",
                component: Teacher_Information,
            },
            //在职教职工信息
            {
                path: "/InService",
                name: "TeacherInServiceInformation",
                authentication: "TeacherInServiceInformation",
                component: Teacher_InServiceInformation,
            },
            //退休教职工信息
            {
                path: "/Retirement",
                name: "TeacherRetirementInformation",
                authentication: "TeacherRetirementInformation",
                component: Teacher_RetirementInformation,
            },
        ]
    },
    //教职工信息统计(预留)
    {
        path: "/TeacherInformation",
        name: "TeacherInformation",
        authentication: "TeacherInformation",
        component: RouterView,
    },
    //教职工综合评测
    {
        path: "/TeacherComprehensiveEvaluation",
        name: "TeacherComprehensiveEvaluation",
        authentication: "TeacherComprehensiveEvaluation",
        component: Teacher_ComprehensiveEvaluation,
    },
    // 办公室房间管理
    {
        path: "/OfficeRoom",
        name: "OfficeRoom",
        authentication: "OfficeRoom",
        component: Teacher_OfficeRoom,
    },
    // 分配办公室
    {
        path: "/DistributionOffice",
        name: "DistributionOffice",
        authentication: "DistributionOffice",
        component: Teacher_DistributionOffice,
    }
]
